<?php
namespace App\Service\Controllers;
use App\Service\Controllers\Base;
use App\Models\Survey;
use App\Models\SurveyAnswer;
use App\Models\SurveyAnswerContent;
use App\Models\SurveyAnswerOption;
use App\Models\SurveyAnswerSheet;
use App\Models\SurveyQuestion;
use App\Models\SurveyQuestionOption;
use Illuminate\Http\Request;
class SurveyController extends Base
{

    public function index(){
        $users = Survey::paginate(3);
        return SurveyResource::collection($users);
    }

    public function create(Request $request){

    }

    public function store(SurveyRequest $request){
        Survey::create($request->all());
        return '用户注册成功。。。';
    }

    public function show(Survey $survey){
        return new SurveyResource($survey);
    }

    public function edit(Request $request){

    }

    public function update(Request $request){

    }

    public function destroy(Request $request){

    }
}
